package com.zmn.oms.dubbo.interfaces.normal.master;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.common.dio.normal.acceptance.AddAcceptanceDIO;
import com.zmn.oms.common.dro.normal.acceptance.AddOrderAcceptanceDRO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import javax.validation.constraints.NotNull;

/**
 * 类描述：订单验收
 *
 * @author wangxiaokun
 * @since 2021/09/24 15:57
 */
@Api(
        value = "工程师操作工单验收",
        tags = {"工程师操作工单验收"}
)
public interface MasterOrderAcceptanceRemoteService {

    @ApiOperation(
            value = "新增订单验收",
            response = ResponseDTO.class,
            tags = {"工程师操作工单验收"}
    )
    ResponseDTO<AddOrderAcceptanceDRO> addOrderWorkAcceptance(@NotNull(message = "入参不能为空") @ApiParam(value = "入参", required = true)
                                                                      AddAcceptanceDIO addAcceptanceDIO);

    @ApiOperation(
            value = "重新发送微信模板消息",
            response = ResponseDTO.class,
            tags = {"工程师操作工单验收"}
    )
    ResponseDTO sendOrderAcceptanceWeChatMessage(@NotNull(message = "入参不能为空")
                                                 @ApiParam(value = "入参", required = true)
                                                         Long orderId,
                                                 @NotNull(message = "入参不能为空")
                                                 @ApiParam(value = "入参", required = true)
                                                         Long acceptanceId);
}
